Optimal. Leaf size=123 \[ -\frac{\left (m^2-9 m+12\right ) (a \sin (e+f x)+a)^{m+3} \, _2F_1(3,m+3;m+4;\sin (e+f x)+1)}{12 a^3 f (m+3)}-\frac{\csc ^4(e+f x) (a \sin (e+f x)+a)^{m+3}}{4 a^3 f}+\frac{(9-m) \csc ^3(e+f x) (a \sin (e+f x)+a)^{m+3}}{12 a^3 f} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.0982222, antiderivative size = 123, normalized size of antiderivative = 1., number of steps used = 4, number of rules used = 4, integrand size = 21, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.19, Rules used = {2707, 89, 78, 65} \[ -\frac{\left (m^2-9 m+12\right ) (a \sin (e+f x)+a)^{m+3} \, _2F_1(3,m+3;m+4;\sin (e+f x)+1)}{12 a^3 f (m+3)}-\frac{\csc ^4(e+f x) (a \sin (e+f x)+a)^{m+3}}{4 a^3 f}+\frac{(9-m) \csc ^3(e+f x) (a \sin (e+f x)+a)^{m+3}}{12 a^3 f} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 2707
Rule 89
Rule 78
Rule 65
Rubi steps
\begin{align*} \int \cot ^5(e+f x) (a+a \sin (e+f x))^m \, dx &=\frac{\operatorname{Subst}\left (\int \frac{(a-x)^2 (a+x)^{2+m}}{x^5} \, dx,x,a \sin (e+f x)\right )}{f}\\ &=-\frac{\csc ^4(e+f x) (a+a \sin (e+f x))^{3+m}}{4 a^3 f}+\frac{\operatorname{Subst}\left (\int \frac{(a+x)^{2+m} \left (-a^2 (9-m)+4 a x\right )}{x^4} \, dx,x,a \sin (e+f x)\right )}{4 a f}\\ &=\frac{(9-m) \csc ^3(e+f x) (a+a \sin (e+f x))^{3+m}}{12 a^3 f}-\frac{\csc ^4(e+f x) (a+a \sin (e+f x))^{3+m}}{4 a^3 f}+\frac{\left (12 a^2-a^2 (9-m) m\right ) \operatorname{Subst}\left (\int \frac{(a+x)^{2+m}}{x^3} \, dx,x,a \sin (e+f x)\right )}{12 a^2 f}\\ &=\frac{(9-m) \csc ^3(e+f x) (a+a \sin (e+f x))^{3+m}}{12 a^3 f}-\frac{\csc ^4(e+f x) (a+a \sin (e+f x))^{3+m}}{4 a^3 f}-\frac{(12-(9-m) m) \, _2F_1(3,3+m;4+m;1+\sin (e+f x)) (a+a \sin (e+f x))^{3+m}}{12 a^3 f (3+m)}\\ \end{align*}
Mathematica [A] time = 0.274734, size = 83, normalized size = 0.67 \[ -\frac{(\sin (e+f x)+1)^3 (a (\sin (e+f x)+1))^m \left (\left (m^2-9 m+12\right ) \, _2F_1(3,m+3;m+4;\sin (e+f x)+1)+(m+3) \csc ^3(e+f x) (3 \csc (e+f x)+m-9)\right )}{12 f (m+3)} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [F] time = 0.352, size = 0, normalized size = 0. \begin{align*} \int \left ( \cot \left ( fx+e \right ) \right ) ^{5} \left ( a+a\sin \left ( fx+e \right ) \right ) ^{m}\, dx \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F(-1)] time = 0., size = 0, normalized size = 0. \begin{align*} \text{Timed out} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [F] time = 0., size = 0, normalized size = 0. \begin{align*}{\rm integral}\left ({\left (a \sin \left (f x + e\right ) + a\right )}^{m} \cot \left (f x + e\right )^{5}, x\right ) \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F(-1)] time = 0., size = 0, normalized size = 0. \begin{align*} \text{Timed out} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int{\left (a \sin \left (f x + e\right ) + a\right )}^{m} \cot \left (f x + e\right )^{5}\,{d x} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]